package com.ht.config.security;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author hejialun
 * @ClassName CommonSecurityBeans
 * @description: TODO（通用安全相关 Bean 配置类）
 * @Date: 2025/7/9 15:58
 */
@Configuration
public class CommonSecurityBeans {
    /**
     * 注入加密对象
     *
     * @return
     */
    @Bean
    public BCryptPasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }

}
